﻿#pragma once
#include <QWidget>
#include <QObject>
#include<QWidgetAction>
#include"ToolButtonIconTextEntirety.hpp"
#include"filewinod.hpp"
#include"MenuAction.hpp"
/*

特化菜单按钮
该按钮拥有二级菜单以及三级菜单
*/
namespace ribbonStyleControls {
	namespace Controls {
		class FileButton :public ToolButtonIconTextEntirety
		{
			Q_OBJECT
		public:
			FileButton() = delete;
			FileButton(QString name, QString iconPath, QWidget* parent = nullptr);
		protected:
			QSize sizeHint() const override;//大小重绘 
			QColor staticBackground() override;
			bool upClickOpenMenu();
			bool downClickOpenMenu();
			QPoint showMenuPos();//设置下拉框显示位置
		private:
			fileWinodwItem* m_filewindoitem;
		};
	}
}
